<template>
    <div>
        <hr>
        <h1>我是组件demo</h1>
        
        <h2 >来自demo组件{{count}}</h2>
        <button @click="add_count">点击改变值</button>
<hr>
    </div>
</template>

<script>
export default {
    data() {
        return {
            count:10,
        }
    },
    methods: {
        add_count(){
            this.count+=5
        }
    },
}
</script>